package com.fzk.blog.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author fzk
 * @date 2021-08-14 20:35
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tbl_blog")
public class Blog {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField(value="type_id")
    private Integer typeId;

    @TableField(value="recommend_level")
    private String recommendLevel;//推荐级别
    @TableField(value="create_flag")
    private String createFlag;//创建标记：原创/转载

    private String title;
    private String content;
    private String description;

    @TableField(value = "image_url")
    private String imageUrl;
    @TableField(value = "view_times")
    private Integer viewTimes;
    private Boolean published;
    @TableField(value = "publish_date")
    private String publishDate;

    @TableLogic
    private Integer flag;
    @TableField(value = "create_time")
    private String createTime;
    @TableField(value = "create_by")
    private Integer createBy;
    @TableField(value = "edit_time")
    private String editTime;
    @TableField(value = "edit_by")
    private Integer editBy;

}
